#include  <stdio.h>

int main ()
{
	int a,b,c;
	int max1;
	scanf_s("%d %d %d", &a, &b, &c);
	if (a < b)
	{
		max1 = a;
		a = b;
		b = max1;
	}
	if (a < c)
	{
		max1 = a;
		a = c;
		c = max1;
	}
	if (b < c)
	{
		max1 = b;
		b = c;
		c = max1;
	}
	printf("%d %d %d",a,b,c);
	return 0;
}
